from django.db import models

# Create your models here.

from django.contrib.auth.models import AbstractUser

# 用户扩展表

class User(AbstractUser):
    mobile = models.CharField(max_length=32,unique=True,verbose_name='联系方式')
    icon = models.ImageField(upload_to='icon',default='icon/default.png')

    class Meta:
        db_table = 'luffy_user'
        verbose_name_plural = '用户表'